.js-add-checklist
  color: #8c8c8c

textarea.js-add-checklist-item, textarea.js-edit-checklist-item
  overflow: hidden
  word-wrap: break-word
  resize: none
  height: 34px

.delete-text
  color: #172b4d
  //text-decoration: underline
  word-wrap: break-word
  float: right
  padding-top: 6px
  &:hover
    //color: inherit

.checklists-title
  display: flex
  justify-content: space-between

.checklist-title
  .checkbox
    float: left
    width: 30px
    height 30px
    font-size: 18px
    line-height: 30px

  .title
    font-size: 18px
    line-height: 25px

  .checklist-stat
    margin: 0 0.5em
    float: right
    padding-top: 6px
    &.is-finished
      color: #3cb500

  .js-delete-checklist
    @extends .delete-text

  span.fa.checklist-handle
    padding-right: 20px
    padding-top: 3px
    float: left


.js-confirm-checklist-delete
  background-color: darken(white, 3%)
  position: absolute
  float: left;
  width: 60%
  margin-top: 0
  margin-left: 13%
  padding-bottom: 2%
  padding-left: 3%
  padding-right: 3%
  z-index: 17
  border-radius: 3px

  p
    position: relative
    margin-top: 3%
    width: 100%
    text-align: center
    span
      font-weight: bold

    i
      font-size: 2em

  .js-checklist-delete-buttons
    position: relative
    padding: left 2% right 2%
    .confirm-checklist-delete
      margin-left: 12%
      float: left
    .toggle-delete-checklist-dialog
      margin-right: 12%
      float: right
#card-details-overlay
  top: 0
  bottom: -600px
  right: 0

.checklist
  background: darken(white, 3%)
  padding: 0 0 0 35px
  margin:0 0 24px
  &:last-child
    margin:0
  &.placeholder
    background: darken(white, 20%)
    border-radius: 2px

  &.ui-sortable-helper
    box-shadow: -2px 2px 8px rgba(0, 0, 0, .3),
                0 0 1px rgba(0, 0, 0, .5)
    transform: rotate(4deg)
    cursor: grabbing


.checklist-item
  // margin: 0 0 0 0.1em
  line-height: 18px
  font-size: 14px
  margin-top: 3px
  display: flex
  background: darken(white, 3%)
  opacity: 1
  transition: height 0ms 400ms, opacity 400ms 0ms
  height: auto
  overflow: hidden
  padding:6px 0 6px 5px
  box-sizing: border-box
  color:#172b4d;
  &.is-checked.invisible
    opacity: 0
    height: 0
    transition: height 0ms 0ms, opacity 600ms 0ms
    margin-top: 0
    margin-bottom: 0

  &.placeholder
    background: darken(white, 20%)
    border-radius: 2px

  &.ui-sortable-helper
    box-shadow: -2px 2px 8px rgba(0, 0, 0, .3),
                0 0 1px rgba(0, 0, 0, .5)
    transform: rotate(4deg)
    cursor: grabbing

  &:hover
    background-color: darken(white, 8%)

  .check-box-container
    padding-right: 10px;

  .check-box
    margin: 0.1em 0 0 0;
    &.is-checked
      border-bottom: 2px solid #3cb500
      border-right: 2px solid #3cb500

  .item-title
    flex: 1
    &.is-checked
      color: #8c8c8c
      // font-style: italic
      text-decoration: line-through
    & .viewer
      p
        margin-bottom: 2px
        display: block
        word-wrap: break-word
        max-width: 420px

  span.fa.checklistitem-handle
    padding-top: 2px
    padding-right: 10px;

.js-delete-checklist-item
  margin: 0 0 0.5em 1.33em
  @extends .delete-text
  padding: 12px 0 0 0

.add-checklist-item
  margin: 0.2em 0 0.5em 1.33em
  display: inline-block

.c-title-icon
  font-size: 24px!important
  margin-right: 10px
.checklist-progress
  position: relative
  margin: 20px 0
.checklist-progress-percentage
  position: absolute
  color: #5e6c84
  font-size: 11px
  line-height: 10px
  left: 0
  top: -1px
  width: 32px
  text-align: center;
.checklist-progress-bar
  background: rgba(9,30,66,.08)
  border-radius: 4px
  height: 8px
  margin: 0 0 0 40px
  overflow: hidden
  position: relative
.checklist-progress-bar-current
  background: #5ba4cf;
  bottom: 0;
  left: 0;
  position: absolute;
  top: 0;
  transition-property: width,background;
  transition-duration: .14s;
  transition-timing-function: ease-in;
.checklist-progress-bar-current-delay
  transition-delay: .2s;

.add-item-c
  display: inline-block;
  font-style: normal;
  font-weight: 400;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  cursor: pointer;
  padding: 6px 12px;
  text-decoration: none;
  background-color: rgba(9,30,66,.04);
  margin:10px
  &:hover
    background-color: rgba(9,30,66,.08);

.delete-checklist-c
  background-color: rgba(9,30,66,.04);
  padding: 6px 12px;
  color: #172b4d;
  text-decoration: none;
  &:hover
    background-color: rgba(9,30,66,.08);
@media screen and (max-width: 800px)
  .checklist
    padding: 0
  .c-title-icon
    font-size: 16px!important
    margin-right: 5px

  .checklist-title .title
    font-size: 14px
